{% extends "base.html" %} {% block title %}Manage Blogs - Admin Panel{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Review and moderate medical articles submitted by doctors
| # | Article Details | Author | Date | Status | Actions |
|---|---|---|---|---|---|
| {{ loop.index }} |
{{ blog.title }}{{ blog.category }} |
{{ blog.doctor.user.name }}
|
{{ blog.created_at.strftime('%d %b %Y, %H:%M') }} | {% if blog.status == 'pending' %} Pending {% elif blog.status == 'published' %} Published {% else %} Rejected {% endif %} |
{# Slot 1: open article #}
{% if blog.status == 'pending' %}Review{% else %}View{% endif %}
{# Slot 2: publish (pending) or delete (else) #}
{% if blog.status == 'pending' %}
{% else %}
{% endif %}
{# Slot 3: reject (pending only) or spacer for column lock-up #}
{% if blog.status == 'pending' %}
{% else %}
{% endif %}
|
Try another card above to view a different set of posts.